<?php

namespace App\Remote\Tiger\User;

use App\Exceptions\BaseException;
use App\Kuafu\Config\Model\ConfigModel;
use App\Remote\Tiger\Remote;
use GuzzleHttp\Exception\GuzzleException;
use Symfony\Component\HttpFoundation\Request as RequestAlias;

class UserCommonRemote extends Remote
{

    /**
     * 判断用户是否属于三方服务
     * @param $userId
     * @return mixed|null
     * @throws BaseException
     * @throws GuzzleException
     */
    public static function checkCruiseCheckUser($userId)
    {
        return self::customCacheRequest(
            "internal/user/checkCruiseCheckUser",
            RequestAlias::METHOD_GET,
            [
                'userId' => $userId
            ]
        );
    }

}
